package com.qyl.deguru.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qyl.deguru.common.PageModel;
import com.qyl.deguru.dto.User;
public interface UserMapper {
	User getUserByUserIdAndPwd(@Param("user_id")String userId,@Param("pass_word")String pwd);//根据用户id与密码获得用户
	List<User> userList(User user);//信息列表展示
	User getUserById(Integer userId);//根据Id获取用户数据
	int updateUser(User user);//修改用户数据
	int delUserById(int id);//删除用户数据
	int addUser(User user);
	List<User> getUsers(@Param("user")User user,@Param("pageModel")PageModel pageModel);
	int getCountByUser(User user);
	List<User> getUsersByPage(User user, PageModel pageModel);
	int delBatchUsers(int[] ids);
	//用户注册
	void registerUser(User user);
	int setActiveStatus(String active_code);
}
